package constant

import (
	"github.com/lab-online/pkg/gen"
	"github.com/lab-online/pkg/resp"
)

const (
	baseSuccessCode         = resp.CodeSuccess + domainCode + iota
	CodeCreateReportSuccess = baseSuccessCode + 0
	CodeGetReportSuccess    = baseSuccessCode + 1
	CodeSearchReportSuccess = baseSuccessCode + 2
)

func SuccessCodeMap() gen.CodeMap {
	return gen.CodeMap{
		"CreateReport": {CodeCreateReportSuccess: "实验报告创建成功"},
		"GetReport":    {CodeGetReportSuccess: "实验报告获取成功"},
		"SearchReport": {CodeSearchReportSuccess: "实验报告搜索成功"},
	}
}
